
<div id="main-content" class="prepend-1 span-19 last">
<?php 
	if ($downloadstatus == 'failed') {
		echo '<span class="error">Berkas '.$notfoundfile.' tidak ditemukan.</span><br /><br />';
	}
?>
	<h3>Daftar Berkas - <?php echo $student->name; ?></h3>
	<table>
		<tr>
			<th width="300">Kategori Berkas</th>
			<th width="150">Tanggal Upload</th>
			<th>Keterangan</th>
			<th width="80">Operasi</th>
		</tr>
<?php if ($files == NULL) : ?>
		<tr>
			<td colspan="4" align="center">
				<span class="info">Belum ada berkas diupload.</span>
			</td>
		</tr>
<?php 
	else :
		foreach ($files as $file) :
			$time = mysql_to_unix($file->upload_time);  
?>
		<tr>
			<td><?php echo $file->name; ?></td>
			<td align="center"><?php echo mdate(DATE_FORMAT, $time); ?></td>
			<td><?php echo $file->details; ?></td>
			<td align="center">
<?php 
	echo anchor($role.'/student/profile/download/'.$file->id.$query, 'Download'); 
?>
			</td>
		</tr>
<?php
		endforeach; 
	endif; 
?>
	</table>
	<div class="clear"><?php echo nbs(); ?></div>
</div>
